#{extends 'retailuser.html' /}
#{set 'moreStyles' }
    <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/user.css'}">
#{/set}
#{set selected:'members' /}


<div class="left_menu" style="float:left; left:0px; width:20%;text-align:center;overflow:visible;">
<h1>Discounts</h1>

<a href="@{Retailer.discounts}">List</a><br>
<a href="@{Retailer.newDiscount}">Offer</a><br>
</div>
<div class="discount_form" style="float:right; width:79%;text-align:justify;">
<form method="post" action="@{Retailer.submitDiscount()}">
<table>
<tr>
	<td>
	<label for="description">Description:</label>
	</td>
	<td><textarea name="description" id="description" rows="10" cols="100%"></textarea><br/>
	</td>
</tr>
<tr>
	<td>
	<label for="expirationDate">Valid until:</lable>
	</td>
	<td>
	<input class="text" type="text" id="expirationDate" name="expirationDate"><br/>
	</td>
</tr>
<tr>
	<td>
	<label for="discountReceiver">Club:</label>
	</td>
	<td>
	<select name="discountReceiver" id="discountReceiver">
		<option value="1">1</option>
		<option value="2">2</option>
		<option value="3">3</option>
	</select><br/>
	</td>
<tr>
	<td>    
	<label for="picUrl">Image:</label>
	</td>
	<td>
	<input type="file" id="picUrl" name="picUrl" /><br/>
	</td>
</tr>
<tr>
	<td>
	<input class="button" type="submit" value="Send Offer" />
	</td>
	<td>
	<input class="button" type="reset" value="reset" />
	</td>
</tr>
</table>
</form>
</div>